package com.cbs.android.widget.fullhtmlview.sample;

import android.app.Application;
import android.graphics.Color;
import android.text.TextPaint;

import com.cbs.android.widget.fullhtmlview.FullHtmlView;
import com.cbs.android.widget.fullhtmlview.LinkStyle;


/**
 * Created by brochexu on 5/21/15.
 */
public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        FullHtmlView.setDefaultLinkStyle(new LinkStyle() {
            @Override
            public void updateDrawState(TextPaint ds) {
                ds.setColor(Color.GREEN);
                ds.setUnderlineText(true);
            }
        });
        FullHtmlView.setDefaultHighlightColor(Color.GREEN);
    }
}
